{if $items}
<table class="table">
    <thead><tr>
        <td>订单编号</td>
        <td>应付金额</td>
        <td>下单时间</td>
        <td>收货人/提货人</td>
        <td>支付方式</td>
        <td>交货方式</td>
        <td>订单状态</td>
        <td><span>操作</span></td>
    </tr></thead>
    <tbody>
        {loop $items $v}
        <tr>
            <td class="break-word">{$v[order_no]}</td>
            <td class="c-primary ">{$v[actual_amount]}</td>
            <td>{$v[order_time]}</td>
            <td>{if $v[shipping_way]==$SHIPPING_WAY_BUYER}{$v[shipping_fullname]}{else}{$v[consignee]}{/if}</td>
            <td>{$v[payway]}</td>
            <td>{$v[shippingway]}</td>
            <td>{$v[orderstatus]}</td>
            <td class="c-primary">
                {if $v[order_status]==$ORDER_STATUS_UNPAY && $v[pay_way]==$PAY_WAY_ONLINE}
                <a class="link2" href="/member/order/dasuPayOrder?id={$v[id]}">支付</a>
                {/if}
                {if $v[order_status]==$WAIT_FOR_USER_CONFIRMATION}
                <a href="javascript:void(0);" data-id="{$v[id]}" class="link2 confirmation">确认订单</a>
                {/if}
                {if ($v[order_status]==$ORDER_STATUS_TO_BE_SHIPPED || $v[order_status]==$ORDER_STATUS_SHIPPED) && $v[shipping_way]==$SHIPPING_WAY_BUYER}
                <a class="link2" href="/member/order/billOfLading?id={$v[id]}">查看提货单</a>
                {/if}
                {if $v[order_status]==$ORDER_STATUS_SHIPPED}
                <a href="javascript:void(0);" data-id="{$v[id]}" class="link2 confirmDelivery">确认收货</a>
                {/if}
                {if $v[order_status]==$ORDER_STATUS_COMPLETED}
                <a class="link2" href="/member/contract/txt?id={$v[id]}">查看合同</a>
                {/if}
                <a class="link2" href="/member/order/detail?id={$v[id]}">查看</a>
                {if $v[order_status]<=$ORDER_STATUS_UNPAY}
                <a class="link2" href="/member/order/cancelOrder" data-act="cancel" data-id="{$v[id]}">取消</a>
                {/if}
            </td>
        </tr>
        {/loop}
    </tbody>
</table>
{$pagemenu}
{else}
<div class="empty_tip">
    没有找到相应的订单
</div>
{/if}
